#ifndef _SERIAL_H_
#define _SERIAL_H_


/* SERIAL DEFINE */
#define FLOWCTR_NONE	0
#define	FLOWCTR_HARDWARE	1
#define	FLOWCTR_XONXOFF		2

#define	NO_PARITY	0
#define	ODD_PARITY	1
#define	EVEN_PARITY	2

#define SERIAL_WIRELESS				"/dev/ttyAMA1"
#define SERIAL_GPS_PORT				"/dev/ttyAMA2"
#define SERIAL_SCERRN_PORT			"/tmp/lpc2366_1"
#define SERIAL_LED_PORT_485			"/tmp/lpc2366_2"
#define SERIAL_SPI_PORT				"/tmp/lpc2366_0"
#define SERIAL_SPI_PORT_1			"/tmp/lpc2366_3"
#define SERIAL_LED_PORT_232			SERIAL_SPI_PORT_1

void set_up_tty (int tty_fd, int local, int inspeed, int crtscts, int parity, int databits, int stopbits, int mode);
void TRACE(const char *format,...);
void TRACE_CONTENTS(int iLen,char * szStr);
void set_up_tty_LPC2366 (char *tty_name, int inspeed, int parity, int databits, int stopbits);
#endif

